<?php

namespace api\modules\mall\controllers;

use api\extensions\ApiBaseController;
use api\services\mall\MallHomeService;

class MallHomeController extends ApiBaseController
{
   
    /**
     * 关键词
     * * */
    public function actionHotwords()
    {
        $params = \Yii::$app->request->post();
        $rules = [
        ];
        $validate = $this->validateParams($params, $rules);
        if ($validate) {
            return $this->jsonError($validate);
        }
        return MallHomeService::getHotwordsList($this->params);
    }


    // 个人中心数据统计
    public function actionCenter()
    {
        $params = \Yii::$app->request->post();
        $rules = [
        ];
        $validate = $this->validateParams($params, $rules);
        if ($validate) {
            return $this->jsonError($validate);
        }
        return MallHomeService::centerData($this->params);
    }


    
}